package com.zyx.order.server.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.zyx.order.server.common.enums.OrderStatus;
import lombok.Data;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/20 23:03
 */
@Data
@TableName(value = "order_detail")
public class OrderDetailPO {
    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private OrderStatus status;

    /**
     * 订单地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 用户id
     */
    @TableField(value = "account_id")
    private Integer accountId;

    /**
     * 产品id
     */
    @TableField(value = "product_id")
    private Integer productId;

    /**
     * 骑手id
     */
    @TableField(value = "deliveryman_id")
    private Integer deliverymanId;

    /**
     * 结算id
     */
    @TableField(value = "settlement_id")
    private Integer settlementId;

    /**
     * 积分奖励id
     */
    @TableField(value = "reward_id")
    private Integer rewardId;

    /**
     * 价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 时间
     */
    @TableField(value = "`date`")
    private Date date;
}